﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'usp_UPDMS_REF_SHOP_Update')
	BEGIN
		DROP Procedure usp_UPDMS_REF_SHOP_Update
	END
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**	Name : usp_UPDMS_REF_SHOP_Update
**	Desc : 업소관리을 수정한다.
**	Test Exec Query : Exec usp_UPDMS_REF_SHOP_Update
**	Called by : Ref_Dac_UPDMS_REF_SHOP.cs
**	Program ID : Ref1010m
**	Auth : 송시명
**	Date : 2013-04-04
*******************************************************************************
**	Change History
*******************************************************************************
**	Date:		Author:		Description:
**	--------	--------	---------------------------------------
**	
*******************************************************************************/
CREATE PROC [dbo].[usp_UPDMS_REF_SHOP_Update]
@Seq int,
@Shop_Id nvarchar(5),
@Category nvarchar(5),
@Shop_Nm nvarchar(50),
@Reserve_Phone nvarchar(100),
@Address nvarchar(200),
@Latitude nvarchar(50),
@Longitude nvarchar(50),
@Favorite_Yn nvarchar(1),
@Remark nvarchar(2000),
@Create_User nvarchar(20),
@Create_Dt datetime,
@Update_User nvarchar(20),
@Update_Dt datetime
AS
SET NOCOUNT OFF

UPDATE UPDMS_REF_SHOP
   SET Category = @Category,
       Shop_Nm = @Shop_Nm,
       Reserve_Phone = @Reserve_Phone,
       Address = @Address,
       Latitude = @Latitude,
       Longitude = @Longitude,
       Favorite_Yn = @Favorite_Yn,
       Remark = @Remark,
       Update_User = @Update_User,
       Update_Dt = GETDATE()
 WHERE Seq = @Seq

GO